import java.util.Scanner;
public class Calculator {
	
public long add(int a,int b)
{
	long a1=a+b;
	return a1;
}
public int substract(int c,int d)
{
	int a2=c-d;
	return a2;
}
public long multiply(int e,int f)
{
	long a3=e*f;
	return a3;
}
public int divide(int g,int h)
{
	int a4=g/h;
	return a4;
}
public static void main(String args[])
{
	Calculator cal=new Calculator();
	
	System.out.println("Select an option from below: \n");
	System.out.println("(1) Addition");
	System.out.println("(2) Subtraction");
	System.out.println("(3) Multiplication");
	System.out.println("(4) Division");
	Scanner sc = new Scanner(System.in);
	int choice = sc.nextInt();
	if(choice == 1){
		System.out.print("1st int: "); 
	       
		int firstint = sc.nextInt(); 
		System.out.print("2nd int: "); 
		int secondint = sc.nextInt();
		long b1=cal.add(firstint,secondint);
		System.out.println(b1);
	}
	else if(choice == 2){
		System.out.print("1st int: "); 
	       
		int firstint = sc.nextInt(); 
		System.out.print("2nd int: "); 
		int secondint = sc.nextInt();
		int b2=cal.substract(firstint,secondint);
		System.out.println(b2);
	}
	else if(choice == 3){
		System.out.print("1st int: "); 
	       
		int firstint = sc.nextInt(); 
		System.out.print("2nd int: "); 
		int secondint = sc.nextInt();

		long b3=cal.multiply(firstint,secondint);
		System.out.println(b3);
	}
	else if(choice == 4){
		System.out.print("1st int: "); 
	       
		int firstint = sc.nextInt(); 
		System.out.print("2nd int: "); 
		int secondint = sc.nextInt();
		int b4=cal.divide(firstint,secondint);
		System.out.println(b4);
	}
	else{
	System.out.println("Invalid");
	}


	
	

	

	
	
	
}




}


